/*
 ***************************************************************************************
 * EP for web developers.Supported By Junxworks
 * @Title:  SJobMapper.java   
 * @Package io.github.junxworks.ep.scheduler.mapper   
 * @Description: (用一句话描述该文件做什么)   
 * @author: Administrator
 * @date:   2021-1-24 17:50:25   
 * @version V1.0 
 * @Copyright: 2021 Junxworks. All rights reserved. 
 * 注意：
 *  ---------------------------------------------------------------------------------- 
 * 文件修改记录
 *     文件版本：         修改人：             修改原因：
 ***************************************************************************************
 */
package io.github.junxworks.qt.modules.mm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import io.github.junxworks.ep.core.orm.TBaseMapper;
import io.github.junxworks.qt.modules.mm.dto.MmDatasourceCondition;
import io.github.junxworks.qt.modules.mm.entity.MmDatasource;
import io.github.junxworks.qt.modules.mm.vo.MmDatasourceVo;

@Mapper
public interface DatasourceMapper extends TBaseMapper<MmDatasource> {

	List<MmDatasourceVo> queryDatasourceList(MmDatasourceCondition condition);

	@Select("select * from mm_datasource where ds_id=#{dsId} and status=0")
	MmDatasourceVo queryDatasourceByDsId(@Param("dsId") String dsId);

}
